﻿using Abp.Runtime.Validation;
using ARchGL.Platform.Dto;

namespace ARchGL.Platform.Authorization.Users.Dto
{
    public class GetUsersInput : PagedSortedAndFilteredInputDto, IShouldNormalize
    {
        public string Permission { get; set; }

        public int? Role { get; set; }

        public bool OnlyLockedUsers { get; set; }

        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "Id DESC";
            }
        }
    }
}